package com.example.demo.Strategy02;

/**
 * 打折
 */
public class CashRebate extends CashSuper {

    private double moneyRebate = 1d;

    @Override
    double acceptCash(double money) {
        return money*moneyRebate;
    }

    public CashRebate(String moneyRebate){
        this.moneyRebate = Double.valueOf(moneyRebate);
    }
}
